﻿#pragma once


// CMetaFieldGroupTreeView 视图

class CMetaFieldGroupTreeView : public CTreeView
{
	DECLARE_DYNCREATE(CMetaFieldGroupTreeView)

protected:
	CMetaFieldGroupTreeView();           // 动态创建所使用的受保护的构造函数
	virtual ~CMetaFieldGroupTreeView();

public:
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	CImageList		m_il;

protected:
	void	Populate();
	void	Populate(ck::data::Schema* pSchema);

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
};


